#include<stdio.h>
//[1,1000] 15
//
int s(int left,int right,int r)
{
  left=(left+r-1)/r*r;
  right=right/r*r;
  int n=(right-left)/r+1;
  return n*(right+left)>>1;

}

int main()
{


    return 0;
}
